CMP#.DIR

Description

CMP#.DIR sets the direction the source value must change through the setpoint start value in order to satisfy the comparison and set the digital output.

It takes two command line arguments: the first specifies the setpoint, and the second specifies the direction.

Examples

Usage

1: Increasing direction, positive velocity

2: Decreasing direction, negative velocity

3: Both directions (default)

Code

The following commands set increasing direction for setpoint 3 of channel 1, and both directions for setpoint 6 of channel 2.

--> CMP1.DIR 3 1
--> CMP2.DIR 6 3

Context

For more information please refer to Compare.

Versions

Action Version Notes
Implemented 02-06-00-000  

General Information

Type

Read/Write

Units

N/A

Range

1 to 3

Default Value

3

Data Type

Integer

See Also

 

Stored in Non-Volatile Memory

Yes

Variants Supported

All variants are supported.

Fieldbus Information

EtherNet/IP

Name

ID

Hex

Data Type

Access

Units

CMP1.DIR

31320

7A58

Unsigned8[8]

Read/Write

-

CMP2.DIR

31321

7A59

Unsigned8[8]

Read/Write

-

PROFINET

Parameter

PNU

Data Type

Access

Units

CMP1.DIR

31320

Unsigned8[8]

Read/Write

-

CMP2.DIR

31321

Unsigned8[8]

Read/Write

-